package com.wula.gtsns.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Member entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "member", catalog = "gtsns")
public class Member implements java.io.Serializable {

	// Fields

	private Integer memberId;
	private String nickname;
	private String mail;
	private String password;

	// Constructors

	/** default constructor */
	public Member() {
	}

	/** minimal constructor */
	public Member(String mail, String password) {
		this.mail = mail;
		this.password = password;
	}

	/** full constructor */
	public Member(String nickname, String mail, String password) {
		this.nickname = nickname;
		this.mail = mail;
		this.password = password;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "MemberId", unique = true, nullable = false)
	public Integer getMemberId() {
		return this.memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	@Column(name = "Nickname", length = 45)
	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	@Column(name = "Mail", nullable = false, length = 45)
	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	@Column(name = "Password", nullable = false, length = 45)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}